package com.findmeastore.pagination;

import java.util.List;

public class Page {
	private List<Object> contents;
	private Integer pageNumber;
	private Integer pageSize;
	private Integer totalResults;
	
	public List getContents() {
		return contents;
	}
	public void setContents(List<Object> contents) {
		this.contents = contents;
	}
	public Integer getPageNumber() {
		return pageNumber;
	}
	public void setPageNumber(Integer pageNumber) {
		this.pageNumber = pageNumber;
	}
	public Integer getPageSize() {
		return pageSize;
	}
	public void setPageSize(Integer pageSize) {
		this.pageSize = pageSize;
	}
	public Integer getTotalResults() {
		return totalResults;
	}
	public void setTotalResults(Integer totalResults) {
		this.totalResults = totalResults;
	}
	public Integer getTotalPages(){
		return  (totalResults/pageSize)+1;
	}
}
